﻿using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Tools.Service;

namespace Tools.Web.Controllers
{
    public class TextController : Controller
    {
        /// <summary>
        /// 情感语录
        /// </summary>
        /// <returns></returns>
        public IActionResult Feeling()
        {
            TxtContentService txtContentService = new TxtContentService();
            var txt= txtContentService.GetFeeling();

            return View(txt);
        }

        /// <summary>
        /// 鸡汤
        /// </summary>
        /// <returns></returns>
        public IActionResult Quotations()
        {
            TxtContentService txtContentService = new TxtContentService();
            var txt = txtContentService.GetChickenSoup();

            return View(txt);
        }

        /// <summary>
        /// 特殊字符
        /// </summary>
        /// <returns></returns>
        public IActionResult Symbol()
        {
            TxtContentService txtContentService = new TxtContentService();
            var txt = txtContentService.GetSymbol();

            return View(txt);
        }

        /// <summary>
        /// 常用电话
        /// </summary>
        /// <returns></returns>
        public IActionResult Phone()
        {
            TxtContentService txtContentService = new TxtContentService();
            var txt = txtContentService.GetPhone();

            return View(txt);
        }

        /// <summary>
        /// 国家和首都
        /// </summary>
        /// <returns></returns>
        public IActionResult Country()
        {
            TxtContentService txtContentService = new TxtContentService();
            var txt = txtContentService.GetCountry();

            return View(txt);
        }

        /// <summary>
        /// 国家货币
        /// </summary>
        /// <returns></returns>
        public IActionResult CountryMoney()
        {
            TxtContentService txtContentService = new TxtContentService();
            var txt = txtContentService.GetCountryMoney();

            return View(txt);
        }
    }
}
